package com.zsrt.devbase.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
 * 数据源切换注解
 * @author leixin
 * @Date 2017年4月26日
 * @version 1.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DataSource {
	String name() default DataSource.master;

	public static String master = "master";

	public static String slave1 = "slave1";

	public static String slave2 = "slave2";
}
